package org.batyrov.equery.action.admin;

import org.batyrov.equery.action.BaseAction;
import org.batyrov.equery.action.Const;

import java.util.Collection;

/**
 * Created by IntelliJ IDEA.
 * User: admin
 * Date: 12.08.2009
 * Time: 21:30:01
 * To change this template use File | Settings | File Templates.
 */
public class ViewUserList extends BaseAction{
    private Collection users;

    public Collection getUsers() {
        return users;
    }

    public void setUsers(Collection users) {
        this.users = users;
    }

    @Override
    public String execute() throws Exception {
        super.execute();
        this.users = dao.getAllUsers();
        return Const.SUCCESS;
    }
}
